home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 1997
/
MacHack 1997.toast
/
Hacks
/
Hacks ’96
/
Booting Gallery
/
Booting Gallery (source)
/
Sources
/
Sound Source
/
SoundManager.h
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1996-06-22
|
385 b
|
33 lines
|
[
TEXT/BROW
]
#pragma once
#ifndef NEW
#define NEW new
#endif
#include <DArray.h>
class SoundPlayer;
class SoundManager
{
public:
SoundManager(OSErr& err);
~SoundManager();
void PlaySound(short id,Boolean loopQ);
protected:
OSErr PreloadSounds();
struct Entry
{
short id;
Handle sndHandle;
long length;
};
DArray<Entry> fSoundList;
SoundPlayer* fSoundPlayer;
};